package com.example.activity_service.service.impl;

import com.example.activity_service.dao.Signindao;
import com.example.activity_service.service.Signinservice;
import com.example.activity_service.vo.Signin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class Signinserviceimpl implements Signinservice {

    @Autowired
    Signindao signindao;

    @Override
    public List<Signin> query(String userid) {
        return signindao.qd(userid);
    }

    @Override
    public int delete(int id) {
        return  signindao.expurgate(id);

    }


    public void add( int userid, int mask, int continuesignmoth) {
        System.out.println(continuesignmoth);
        signindao.cancel(userid,mask,continuesignmoth);
    }

    @Override
    public int amend(int id, int userid, Date datemonth, int mask, int continuesignmonth) {
        return signindao.amend(id, userid, datemonth, mask, continuesignmonth);
    }


}
